import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';

const basicRoutes = [
  {
    path: '/',
    name: 'App',
    redirect: '/home',
    meta: {},
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/Home/index.vue'),
    children: [],
    meta: {},
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes: basicRoutes as RouteRecordRaw[],
  strict: true,
  scrollBehavior: () => ({ left: 0, top: 0 }),
});

export default router